package com.qf.service.impl;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.qf.pojo.Order;
import com.qf.service.UserService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Override
    public List<Order> findById(Integer uid) {
        System.out.println("通过远程调用查询用户订单");
        return new ArrayList<>();
    }

    @SentinelResource("queryOrder")
    @Override
    public void queryOrder() {
        System.out.println("订单查询....");
    }
}
